package jbl.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Tkf entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_usergroup_menu", catalog = "jbldangl")
public class T_usergroup_menu implements java.io.Serializable {

	private String id;
	private Tmenu tmenu;
	private Code_tusergroup tusergroup;



	@Id
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "menuId")
	public Tmenu getTmenu() {
		return tmenu;
	}

	public void setTmenu(Tmenu tmenu) {
		this.tmenu = tmenu;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "usergroupId")
	public Code_tusergroup getTusergroup() {
		return tusergroup;
	}

	public void setTusergroup(Code_tusergroup tusergroup) {
		this.tusergroup = tusergroup;
	}
	
}